package com.smart_campus.campus.domain;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author Alfred
 * @time: 2020/6/28 19:26
 * 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CampusJournalism implements Serializable {
    /**
    * id
    */
    private Integer id;

    /**
    * 新闻标题
    */
    private String title;

    /**
    * 新闻内容
    */
    private String content;

    /**
    * 用户id
    */
    private Integer userId;

    /**
    * 排序吗
    */
    private Integer ordernum;

    /**
    * 创建时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}